package com.woniu.liuzhougov.authorityControl.utils;

import java.util.Map;

/**
 * @author zhuxinpan
 * @version 1.0
 * @className TreeResult
 * @description 返回树节点的数据
 * @date 2019/4/28 17:24
 */
public class TreeResult {
    private Integer code;
    private String msg;
    private Map<String, Object> data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }

    public TreeResult(Integer code, String msg, Map<String, Object> data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public TreeResult() {
    }

    public static TreeResult getTreeResult(Map<String, Object> data) {
        return new TreeResult(0, "获取数据成功", data);
    }
}
